import router from '@/routers';
import '@/routers/guards';
import { authDirective } from '@/utils/authority';
import { App, Plugin } from 'vue';
import errorHandlerPlugin from './vue-error-handler';
const plugins: Plugin = {
	install: (app: App) => {
		app.use(errorHandlerPlugin);
		app.use(router);
		app.use(authDirective);
	},
};

export default plugins;
